<%@ page import="cn.lizheng.pojo.Admininfo" %>
<%@ page import="cn.lizheng.dao.AdmininfoDAOImpl" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 14611
  Date: 2019/12/1
  Time: 11:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>


<html>
<link rel="stylesheet" href="layui/css/layui.css">
<script type="text/javascript" src="layui/layui.js"></script>

<head>
    <title>Title</title>
</head>
<body>
<%--<jsp:include page="Daohanglan.jsp"></jsp:include>--%>
<table class="layui-table">
    <tr>
        <td style="padding-left: 100px">用户ID</td>
        <td style="padding-left: 100px">用户名</td>
        <td style="padding-left: 100px">Telephone Number</td>
        <td style="padding-left: 100px">用户头像</td>
<%--        <td>--%>
<%--            <a href="save.jsp" class="layui-btn layui-btn-radius layui-btn-danger">--%>
<%--                <i class="layui-icon layui-icon-add-1"></i> 添加--%>
<%--            </a>--%>
<%--        </td>--%>
        <td style="padding-left: 100px" colspan="2">
        <form action="/GetByid" method="post">
            <input type="text" placeholder="请输入ID" name="adminid"/>

            <input type="submit" value="点击查找"/>

        </form>
        </td>

    </tr>
    <c:forEach items="${adminList}" var="a">
        <tr>
            <td style="padding-left: 100px">
                    ${a.adminid}
            </td>
            <td style="padding-left: 100px">
                    ${a.username}
            </td>
            <td style="padding-left: 100px">
                    ${a.password}
            </td>
            <td style="padding-left: 100px">
<%--                <img src="${a.picurl}" width="50" />--%>
                <img src="img/pic.jpg">
            </td>
            <td style="padding-left: 120px">
                <a href="/edit?adminid=${a.adminid}" class="layui-btn layui-btn-radius layui-btn-normal">
                    <i class="layui-icon layui-icon-edit "></i> 修改
                </a>

                <a href="admindelete?adminid=${a.adminid}" class="layui-btn layui-btn-radius layui-btn-warm">
                    <i class="layui-icon layui-icon-delete"></i> 删除
                </a>

            </td>
        </tr>

    </c:forEach>

</table>
</body>
</html>
